package store;

// Please don't modify the class name.

/**
 * @author jiang
 * @date 2021/10/30
 */
public class Store {
    Item[] items;

    // Please don't modify the signature of this method.

    /**
     * 构造方法
     *
     * @param items
     */
    public Store(Item[] items) {
        this.items = items;
    }

    // Please don't modify the signature of this method.

    /**
     * 更新价格
     */
    public void updateValue() {
        StoreContext storeContext;
        for (Item item : items) {
            storeContext = new StoreContext(item.name);
            storeContext.updateValue(item);
        }

    }

}